home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS16.ADF
/
C
/
Gen
/
ReadMe.DOC
< prev
next >
Wrap
Text File
|
1989-01-27
|
3KB
|
105 lines
THE TOOLS (C) 1986 - Scott Evernden
========= =========================
I'm tired of having listings of the Amiga header files cluttering up
my environment. I wrote a program to look up header file symbols,
data structure names, and other definitions for me. Now, if I forget
what the fields are in a `struct NewWindow', I can get my Amiga to
locate and list the definition for me, in mere seconds!
Using the tools supplied here, you can finally put those bothersome
header file listings away.
A number of files are included to assist the Amiga programmer.
1. gen symFile
Generates the file `symFile' from a supplied list of
Amiga header filenames. Each ".h" file is scanned to
locate #defines, typedefs, and struct/union tags.
Information necessary in allowing the reader program to
locate symbols is produced.
2. read symFile
Allows quick lookup of any Amiga header file symbols.
You enter an interactive mode where you are prompted
for a symbol, and the program looks up the definition
for you.
3. all
A data file consisting of a list of all the Amiga v1.1
header filenames, as on the Manx C developer disk.
How to use:
-----------
Edit the file `all' to your requirements. To build your symbol index:
$ gen <all total
Each header file will be examined. After a short while, the symbol
index file `total' will be produced. Now, to use this index:
$ read total
You will be prompted for a symbol name. Enter a symbol (like "rastport")
and the reader will look up and list the definition for you.
Notes:
------
This is a very early beta version of these programs. I may be enhancing
them in the future. If you find yourself using these, you can send
me $25 at
Scott Evernden
9 Courtland St
Holliston, MA 01746
to ensure that I will.
...............
gen
Takes a -d switch meaning
"don't compile #define's"
Takes a -h switch meaning
"skip the check for a filename not ending in '.h'"
Expects to read the names of files from `stdin'. You can do this by hand,
ending with a blank line; or you can redirect in a listing file, such as
the `all' file provided.
The `gen' program is not perfect. It does work for me on my copies of
the header files. It has not been extensively tested. It just might
fail on funny-looking header files with peculiar layouts. I have not
tried this program on the fully-commented Amiga header files, although
it SHOULD work fine.
I know it can't handle this form properly:
struct alpha {
struct beta {
}
};
Only `alpha' is seen; symbol `beta' will not be seen. This means that
symbols like "SpriteDef" and "AudChannel" are missing since they are
defined this way in "hardware/custom.h". I was lazy; maybe I fix later.
For straight value-less symbol definition as in
#define LIBRARIES_DOS_H
the symbol will not be enterred.
...............
read
If you enter a symbol which is NOT in the header files originally scanned,
the `read' program may show you a definition for a symbol other than what
you typed. This is simply an artifact of the way the index file is
constructed.
Type a blank line to end.
Symbols are dealt with in a case-insensitive fashion. "newwindow",
"NewWindow", and "NEWWINDow" will all get you to the same place.
This is the program your dollars will talk me into enhancing.